<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:vti="http://java.sun.com/jsf/composite/components/vti"
                template="/autenticacao/templateLogin.xhtml">
    <ui:define name="conteudo">
                                    <h:panelGroup id="formLogin" layout="block">
                                        <form action="#{request.contextPath}/j_spring_security_check" method="post" >  
                                            <div class="input-req-login">
                                                <h:outputLabel value="#{msgs['campo.email']}" for="j_username" styleClass="labels" />
                                            </div>
                                            <div class="input-field-login username-container">
                                                <h:inputText id="j_username" required="true" />
                                                <p:watermark value="#{msgs['marcadagua.usuario']}" for="j_username" />
                                            </div>
                                            <div class="input-req-login">
                                                <h:outputLabel value="#{msgs['campo.senha']}" for="j_password" styleClass="labels" />
                                            </div>
                                            <div class="input-field-login password-container">
                                                <h:inputSecret id="j_password" required="true" />
                                                <p:watermark value="#{msgs['marcadagua.senha']}" for="j_password" />
                                            </div>
                                            <div class="gradeBotoes">
                                                <h:commandButton type="submit" value="#{msgs['acao.enviar']}" styleClass="btnLogin" /> 
                                                <h:commandButton type="button" value="#{msgs['botao.esqueci.senha']}" styleClass="btnEsqueci"
                                                                 onclick="document.location.href='#{request.contextPath}/autenticacao/esqueci.jsf'" /> 
                                            </div>
                                            <div class="rodapeLogin">
                                                <p>Ainda não tem uma conta? <a href="#{request.contextPath}/pages/usuario.jsf">Inscreva-se já</a></p>
                                            </div>
                                        </form>
                                    </h:panelGroup>
    </ui:define>
</ui:composition>